$(function (){
    //Js 获取hidden的隐藏域
    var orderDetail=JSON.parse($("#order").val());

    $('#orderNo').val(orderDetail.orderNo);

    document.getElementById("nickName").innerHTML = orderDetail.user.nickname;
    if (orderDetail.user.avatar!== null){
        document.getElementById("avatar").src = orderDetail.user.avatar;
    }
    document.getElementById("storeName").innerHTML = orderDetail.orderCartInfoObj.storeName;
    document.getElementById("storeImage").src = orderDetail.orderCartInfoObj.image;
    document.getElementById("totalMoney").innerHTML = '￥'+orderDetail.totalPrice;
    document.getElementById("suk").innerHTML = orderDetail.orderCartInfoObj.suk + '<span style="margin-left: 30%">x'+orderDetail.totalNum+'</span>';


})